package com.xxl.job.executor.exception;
import com.xxl.job.executor.enums.StatusCodeEnum;

public class BusinessException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	private StatusCodeEnum statusCodes;
	private String result;
	

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public StatusCodeEnum getStatusCodes() {
		return statusCodes;
	}

	public void setStatusCodes(StatusCodeEnum statusCodes) {
		this.statusCodes = statusCodes;
	}
	
	public BusinessException(StatusCodeEnum statusCodes){
		this.statusCodes = statusCodes;
	}
	
	public BusinessException(StatusCodeEnum statusCodes,String errorMessage){
		this.statusCodes = statusCodes;
		this.result = errorMessage;
	}
	public BusinessException(StatusCodeEnum statusCodes, String message,String errorMessage){
		super(message);
		this.statusCodes = statusCodes;
		this.result = errorMessage;
	}

	public BusinessException(String message){
		super(message);
	}
	
	public BusinessException(Throwable cause)
	{
		super(cause);
	}
	
	public BusinessException(String message, Throwable cause)
	{
		super(message,cause);
	}
}
